<?php


namespace App\Worker;


use App\Biquge\NovalStarter;
use App\Bx\BxStarter;
use App\Core\Ioc;

class Processes
{
    public $ioc;

    public $topics = [
//        NovalStarter::class,
        BxStarter::class
    ];

    public function __construct(Ioc $ioc)
    {
        $this->ioc = $ioc;
    }


    public function run()
    {
        foreach ($this->topics as $topic) {
            (new $topic)->start($this->ioc);
        }
    }
}